package com.member.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizDevelopOrder;
import com.member.shop.dto.OverviewDto;

import java.math.BigDecimal;
import java.util.List;

/**
 * 发展会员数订单Mapper接口
 *
 * @author lixinchen
 * @date 2024-01-09
 */
public interface SysBizDevelopOrderMapper extends BaseMapper<SysBizDevelopOrder> {
    /**
     * 查询发展会员数订单
     *
     * @param id 发展会员数订单主键
     * @return 发展会员数订单
     */
    public SysBizDevelopOrder selectSysBizDevelopOrderById(Long id);

    /**
     * 查询发展会员数订单列表
     *
     * @param sysBizDevelopOrder 发展会员数订单
     * @return 发展会员数订单集合
     */
    public List<SysBizDevelopOrder> selectSysBizDevelopOrderList(SysBizDevelopOrder sysBizDevelopOrder);

    /**
     * 新增发展会员数订单
     *
     * @param sysBizDevelopOrder 发展会员数订单
     * @return 结果
     */
    public int insertSysBizDevelopOrder(SysBizDevelopOrder sysBizDevelopOrder);

    /**
     * 修改发展会员数订单
     *
     * @param sysBizDevelopOrder 发展会员数订单
     * @return 结果
     */
    public int updateSysBizDevelopOrder(SysBizDevelopOrder sysBizDevelopOrder);

    /**
     * 删除发展会员数订单
     *
     * @param id 发展会员数订单主键
     * @return 结果
     */
    public int deleteSysBizDevelopOrderById(Long id);

    /**
     * 批量删除发展会员数订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizDevelopOrderByIds(Long[] ids);

    //会员订单总数
    Long todayOrderCount(OverviewDto overviewDto);

    //会员订单总金额
    BigDecimal PlatformTotalOrderAmount(OverviewDto overviewDto);
}